package com.howie.shirojwt.service;

import com.howie.shirojwt.enity.User;
import com.howie.shirojwt.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public String select(String username){
        return userMapper.getPassword(username);
    }
    public User getUser(String username){
        return userMapper.getAll(username);
    }
}
